Ahmed Eldemery [Fri, 28 Aug 2020 16:45:15 +0000 (18:45 +0200)]
Merge remote-tracking branch 'upstream/master' into master
Asier Sarasua Garmendia [Fri, 28 Aug 2020 10:26:30 +0000 (10:26 +0000)]
Update Basque translation
Matthias Clasen [Fri, 28 Aug 2020 00:49:55 +0000 (20:49 -0400)]
NEWS: Updates
Matthias Clasen [Wed, 26 Aug 2020 11:57:07 +0000 (07:57 -0400)]
idle sizer: Request a motion event after layout
When we are reallocating widgets, make sure that
we get a motion event in the next frame cycle,
so the hover state gets updated.
Matthias Clasen [Fri, 21 Feb 2020 21:38:36 +0000 (16:38 -0500)]
Add a function to request motion events
We want to ensure that the pointer position is reflected
when widget geometry changes, so add a function that tells
GDK "please create a motion event at the current position
on this surface, if one doesn't happen already".
Jordi Mas [Thu, 27 Aug 2020 18:54:16 +0000 (20:54 +0200)]
Update Catalan translation
Matthias Clasen [Thu, 27 Aug 2020 16:34:02 +0000 (12:34 -0400)]
bookmarksmanager: Cancel async reads properly
This was causing the objects-finalize test to fail in ci.
Matthias Clasen [Thu, 27 Aug 2020 11:31:45 +0000 (07:31 -0400)]
Don't export gdk_surface_constrain_size
It has one last use in gtkwindow.c, but that will
go away and doesn't need this function to be exported
anyway.
Kukuh Syafaat [Thu, 27 Aug 2020 03:03:54 +0000 (03:03 +0000)]
Update Indonesian translation
Carlos Garnacho [Wed, 26 Aug 2020 22:27:50 +0000 (00:27 +0200)]
gdk/wayland: Use double-click/drag-threshold settings from g-d-s
Handle both these settings, and the older settings-daemon ones for
backwards compatibility. The keys are already checked for existence
in the schema, so it will just use the existing ones.
Carlos Garnacho [Wed, 26 Aug 2020 22:18:09 +0000 (00:18 +0200)]
gdk/wayland: Look for font settings in gsettings-desktop-schemas
Prefer this location, but also look for the old location in
settings-daemon for backwards compatibility. This applies to both
direct settings lookups and via the settings portal.
Alexander Mikhaylenko [Wed, 26 Aug 2020 23:04:48 +0000 (04:04 +0500)]
wayland: Fix dnd hotspot movement
_gdk_wayland_surface_offset_next_wl_buffer() moves the surface relatively
to its current position, pass it a delta instead of new position.
Matthias Clasen [Wed, 26 Aug 2020 22:09:47 +0000 (18:09 -0400)]
gdk: Drop an unused vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:55:03 +0000 (16:55 -0400)]
gdk: Cosmetics
Matthias Clasen [Wed, 26 Aug 2020 20:52:03 +0000 (16:52 -0400)]
broadway: Fix up surface_at_position
Matthias Clasen [Wed, 26 Aug 2020 20:35:28 +0000 (16:35 -0400)]
win32: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:33:49 +0000 (16:33 -0400)]
wayland: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:32:31 +0000 (16:32 -0400)]
wayland: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:28:09 +0000 (16:28 -0400)]
broadway: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:24:57 +0000 (16:24 -0400)]
broadway: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:23:21 +0000 (16:23 -0400)]
x11: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:20:34 +0000 (16:20 -0400)]
x11: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:09:14 +0000 (16:09 -0400)]
gdk: Drop the query_state vfunc
It is no longer used.
Matthias Clasen [Wed, 26 Aug 2020 20:06:11 +0000 (16:06 -0400)]
x11: Stop setting the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:05:54 +0000 (16:05 -0400)]
win32: Stop using the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:05:19 +0000 (16:05 -0400)]
macos: Stop setting the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:04:25 +0000 (16:04 -0400)]
wayland: Stop using the query_state vfunc
Just call the backend implementation directly.
Matthias Clasen [Wed, 26 Aug 2020 20:03:31 +0000 (16:03 -0400)]
broadway: Stop using the query_state vfunc
Just call the backend implementation directly.
Matthias Clasen [Wed, 26 Aug 2020 19:38:02 +0000 (15:38 -0400)]
Drop _gdk_device_query_state
It is now unused.
Matthias Clasen [Wed, 26 Aug 2020 19:33:37 +0000 (15:33 -0400)]
macos: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 19:31:45 +0000 (15:31 -0400)]
win32: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 19:31:07 +0000 (15:31 -0400)]
x11: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 13:01:48 +0000 (09:01 -0400)]
Make gdk_surface_get_device_position return a boolean
A year ago, we make this function not return the child
surface anymore. But the information whether the device
is actually over the surface is still useful, and we
should not loose it.
Matthias Clasen [Wed, 26 Aug 2020 11:26:01 +0000 (07:26 -0400)]
main: Avoid a crash with crossing event handling
We are reusing the GtkCrossingData struct for multiple
calls here, so we need to make sure that the targets
stay alive from beginning to end.
Fixes: #3090
Matthias Clasen [Wed, 26 Aug 2020 11:24:54 +0000 (07:24 -0400)]
widget: Avoid a crash in crossing event handling
We need to make sure that the crossing data stays
alive until we are done handling it, so take references
on all the widgets in it.
Alexander Larsson [Wed, 26 Aug 2020 16:08:00 +0000 (18:08 +0200)]
broadway: Prune fully clipped render nodes
If some node is fully outside the clip region we don't send it to the daemon.
This helps a lot in how much data we send for scrolling viewports.
However, sending partial trees makes node reuse a bit more tricky. We
can't save for reuse any node that could possibly clip different depending on
the clip region, as that could be different next frame. So, unless the
node is fully contained in the current clip (and we thus know it is not
parial) we don't allow reusing that next frame.
This fixes #3086
Alexander Larsson [Wed, 26 Aug 2020 14:55:56 +0000 (16:55 +0200)]
broadway: Track the clip region in the renderer
If we know what can't possibly be visible we may can later decide to
not expose a node.
Fran Dieguez [Wed, 26 Aug 2020 15:42:23 +0000 (15:42 +0000)]
Update Galician translation
Alexander Larsson [Wed, 26 Aug 2020 12:01:00 +0000 (14:01 +0200)]
Broadway: Fix handling of debug nodes
The debug nodes have id BROADWAY_NODE_DEBUG, which happens to be "12".
So, don't hardcode the wrong number "14".
Alexander Larsson [Wed, 26 Aug 2020 10:18:28 +0000 (12:18 +0200)]
broadway: Correct handling of opaque colors
If alpha is 255, we use rgb() instead of rgba(), not if alpha is 0.
This makes the title bar gradient go from fully transparent to blue
rather than black to blue..
Matthias Clasen [Tue, 25 Aug 2020 19:13:39 +0000 (15:13 -0400)]
fontchooser: Populate the list incrementally
By adding 20 fonts / frame to the font list, we can
get the font chooser dialog to show up much faster.
This change gets the font chooser up in 265ms here.
Emmanuele Bassi [Tue, 25 Aug 2020 15:34:04 +0000 (16:34 +0100)]
a11y: Simplify the ATContext::state-change signal
We cannot pass all the data we pass to the virtual function, because the
types are private, but the class and the signal are public API.
The signal is just a notification, so we can decouple the virtual
function (which stays the same, for internal types that implement the
ATContext API contract) from the signal.
Emmanuele Bassi [Tue, 25 Aug 2020 10:31:26 +0000 (11:31 +0100)]
Annotate GValue-variants methods of GtkAccessible
The variadic arguments methods cannot be used by language bindings,
which means we can let them use their names when calling the
GValue-based methods.
Emmanuele Bassi [Tue, 25 Aug 2020 10:30:46 +0000 (11:30 +0100)]
Properly document GtkAccessible:accessible-role
Use a gtk-doc stanza, instead of the GParamSpec strings.
Emmanuele Bassi [Wed, 5 Aug 2020 17:05:46 +0000 (18:05 +0100)]
a11y: Do not notify of empty state changes
If the ATContext state hasn't changed—for instance, if the accessible
attributes have been set to their default value, or have been set to the
same value—do not emit an accessible state change. State changes can be
arbitrarily expensive, so we want to ensure that they are meaningful.
Emmanuele Bassi [Wed, 5 Aug 2020 17:04:34 +0000 (18:04 +0100)]
a11y: Notify callers when an attributes set changes
We can use that information inside the ATContext.
Emmanuele Bassi [Wed, 5 Aug 2020 14:05:06 +0000 (15:05 +0100)]
a11y: GtkATContext.update_state() was renamed to update()
Emmanuele Bassi [Wed, 5 Aug 2020 14:03:00 +0000 (15:03 +0100)]
a11y: Allow bulk attribute update with the GValue API
Like we do for the varargs API.
Emmanuele Bassi [Tue, 25 Aug 2020 15:32:49 +0000 (16:32 +0100)]
a11y: Different value types cannot be equal
Bail out early, instead of going deep into the GtkAccessibleValue type
equal() implementation, where we expect both accessible values to have
the same type.
Aurimas Černius [Tue, 25 Aug 2020 20:23:57 +0000 (23:23 +0300)]
Updated Lithuanian translation
nana-4 [Thu, 6 Aug 2020 15:54:46 +0000 (00:54 +0900)]
gtk-demo: Avoid double borders in the blendmodes demo
nana-4 [Thu, 6 Aug 2020 15:54:44 +0000 (00:54 +0900)]
gtk-demo: Avoid double borders in the fontrendering demo
Replace the frame with a separator.
nana-4 [Thu, 6 Aug 2020 15:54:41 +0000 (00:54 +0900)]
gtk-demo: Avoid double borders in the dnd demo
Replace the frame with a separator.
nana-4 [Thu, 6 Aug 2020 15:54:42 +0000 (00:54 +0900)]
gtk-demo: Avoid double borders in the panes demo
Using frames for the children of the panes looks bad.
nana-4 [Tue, 25 Aug 2020 05:24:50 +0000 (14:24 +0900)]
inspector: Avoid double borders in the resource tab
Replace the frames with a separator.
nana-4 [Fri, 7 Aug 2020 11:14:19 +0000 (20:14 +0900)]
inspector: Avoid double borders in the accessibility tab
Replace the frame with a separator.
Asier Sarasua Garmendia [Fri, 28 Aug 2020 10:26:30 +0000 (10:26 +0000)]
Update Basque translation
Matthias Clasen [Fri, 28 Aug 2020 00:49:55 +0000 (20:49 -0400)]
NEWS: Updates
Matthias Clasen [Thu, 27 Aug 2020 20:24:34 +0000 (20:24 +0000)]
Merge branch 'synthetic-motion' into 'master'
Synthetic motion
See merge request GNOME/gtk!2493
Matthias Clasen [Wed, 26 Aug 2020 11:57:07 +0000 (07:57 -0400)]
idle sizer: Request a motion event after layout
When we are reallocating widgets, make sure that
we get a motion event in the next frame cycle,
so the hover state gets updated.
Jordi Mas [Thu, 27 Aug 2020 18:54:16 +0000 (20:54 +0200)]
Update Catalan translation
Matthias Clasen [Fri, 21 Feb 2020 21:38:36 +0000 (16:38 -0500)]
Add a function to request motion events
We want to ensure that the pointer position is reflected
when widget geometry changes, so add a function that tells
GDK "please create a motion event at the current position
on this surface, if one doesn't happen already".
Matthias Clasen [Thu, 27 Aug 2020 17:04:34 +0000 (17:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
bookmarksmanager: Cancel async reads properly
See merge request GNOME/gtk!2495
Matthias Clasen [Thu, 27 Aug 2020 16:34:02 +0000 (12:34 -0400)]
bookmarksmanager: Cancel async reads properly
This was causing the objects-finalize test to fail in ci.
Matthias Clasen [Thu, 27 Aug 2020 12:12:52 +0000 (12:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Don't export gdk_surface_constrain_size
See merge request GNOME/gtk!2494
Matthias Clasen [Thu, 27 Aug 2020 11:31:45 +0000 (07:31 -0400)]
Don't export gdk_surface_constrain_size
It has one last use in gtkwindow.c, but that will
go away and doesn't need this function to be exported
anyway.
Kukuh Syafaat [Thu, 27 Aug 2020 03:03:54 +0000 (03:03 +0000)]
Update Indonesian translation
Matthias Clasen [Thu, 27 Aug 2020 00:08:45 +0000 (00:08 +0000)]
Merge branch 'wip/carlosg/shuffle-font-mouse-settings' into 'master'
Look up font and mouse settings in gsettings-desktop-schemas
See merge request GNOME/gtk!2489
Matthias Clasen [Wed, 26 Aug 2020 23:44:15 +0000 (23:44 +0000)]
Merge branch 'wip/exalm/hotspot-fix' into 'master'
wayland: Fix dnd hotspot movement
See merge request GNOME/gtk!2492
Alexander Mikhaylenko [Wed, 26 Aug 2020 23:04:48 +0000 (04:04 +0500)]
wayland: Fix dnd hotspot movement
_gdk_wayland_surface_offset_next_wl_buffer() moves the surface relatively
to its current position, pass it a delta instead of new position.
Matthias Clasen [Wed, 26 Aug 2020 22:34:08 +0000 (22:34 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2488
Carlos Garnacho [Wed, 26 Aug 2020 22:27:50 +0000 (00:27 +0200)]
gdk/wayland: Use double-click/drag-threshold settings from g-d-s
Handle both these settings, and the older settings-daemon ones for
backwards compatibility. The keys are already checked for existence
in the schema, so it will just use the existing ones.
Carlos Garnacho [Wed, 26 Aug 2020 22:18:09 +0000 (00:18 +0200)]
gdk/wayland: Look for font settings in gsettings-desktop-schemas
Prefer this location, but also look for the old location in
settings-daemon for backwards compatibility. This applies to both
direct settings lookups and via the settings portal.
Matthias Clasen [Wed, 26 Aug 2020 22:09:47 +0000 (18:09 -0400)]
gdk: Drop an unused vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:55:03 +0000 (16:55 -0400)]
gdk: Cosmetics
Matthias Clasen [Wed, 26 Aug 2020 20:52:03 +0000 (16:52 -0400)]
broadway: Fix up surface_at_position
Matthias Clasen [Wed, 26 Aug 2020 20:35:28 +0000 (16:35 -0400)]
win32: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:33:49 +0000 (16:33 -0400)]
wayland: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:32:31 +0000 (16:32 -0400)]
wayland: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:28:09 +0000 (16:28 -0400)]
broadway: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:24:57 +0000 (16:24 -0400)]
broadway: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:23:21 +0000 (16:23 -0400)]
x11: Drop unused argument from query_state
Now that this is backend-only api, we can just
drop unused arguments.
Matthias Clasen [Wed, 26 Aug 2020 20:20:34 +0000 (16:20 -0400)]
x11: Fix return value of get_device_state
We need to look a the position, not the child surface.
Matthias Clasen [Wed, 26 Aug 2020 20:09:14 +0000 (16:09 -0400)]
gdk: Drop the query_state vfunc
It is no longer used.
Matthias Clasen [Wed, 26 Aug 2020 20:06:11 +0000 (16:06 -0400)]
x11: Stop setting the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:05:54 +0000 (16:05 -0400)]
win32: Stop using the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:05:19 +0000 (16:05 -0400)]
macos: Stop setting the query_state vfunc
Matthias Clasen [Wed, 26 Aug 2020 20:04:25 +0000 (16:04 -0400)]
wayland: Stop using the query_state vfunc
Just call the backend implementation directly.
Matthias Clasen [Wed, 26 Aug 2020 20:03:31 +0000 (16:03 -0400)]
broadway: Stop using the query_state vfunc
Just call the backend implementation directly.
Matthias Clasen [Wed, 26 Aug 2020 19:38:02 +0000 (15:38 -0400)]
Drop _gdk_device_query_state
It is now unused.
Matthias Clasen [Wed, 26 Aug 2020 19:33:37 +0000 (15:33 -0400)]
macos: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 19:31:45 +0000 (15:31 -0400)]
win32: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 19:31:07 +0000 (15:31 -0400)]
x11: Stop using _gdk_device_query_state
Directly use the backend implementation.
Matthias Clasen [Wed, 26 Aug 2020 18:02:18 +0000 (18:02 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3090
See merge request GNOME/gtk!2485
Matthias Clasen [Wed, 26 Aug 2020 17:52:57 +0000 (17:52 +0000)]
Merge branch 'broadway-prune' into 'master'
broadway: Prune fully clipped render nodes
Closes #3086
See merge request GNOME/gtk!2487
Alexander Larsson [Wed, 26 Aug 2020 16:08:00 +0000 (18:08 +0200)]
broadway: Prune fully clipped render nodes
If some node is fully outside the clip region we don't send it to the daemon.
This helps a lot in how much data we send for scrolling viewports.
However, sending partial trees makes node reuse a bit more tricky. We
can't save for reuse any node that could possibly clip different depending on
the clip region, as that could be different next frame. So, unless the
node is fully contained in the current clip (and we thus know it is not
parial) we don't allow reusing that next frame.
This fixes #3086
Fran Dieguez [Wed, 26 Aug 2020 15:42:23 +0000 (15:42 +0000)]
Update Galician translation
Alexander Larsson [Wed, 26 Aug 2020 14:55:56 +0000 (16:55 +0200)]
broadway: Track the clip region in the renderer
If we know what can't possibly be visible we may can later decide to
not expose a node.
Matthias Clasen [Wed, 26 Aug 2020 13:01:48 +0000 (09:01 -0400)]
Make gdk_surface_get_device_position return a boolean
A year ago, we make this function not return the child
surface anymore. But the information whether the device
is actually over the surface is still useful, and we
should not loose it.
Timm Bäder [Wed, 26 Aug 2020 12:38:09 +0000 (12:38 +0000)]
Merge branch 'broadway-debug-nodes' into 'master'
Broadway: Fix handling of debug nodes
See merge request GNOME/gtk!2486